package cn.relx.controller;

import cn.relx.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @GetMapping("/user/{id}")
    public User getById(@PathVariable("id") Long id){
        int a = 1/0;
        return new User(id,"河北彩花","著名演员");
    }
}
